xen/arm: vsmc: Implement SMCCC_ARCH_WORKAROUND_1 BP hardening support
authorJulien Grall <julien.grall@arm.com>
Fri, 23 Feb 2018 18:57:15 +0000 (18:57 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 26 Feb 2018 22:59:09 +0000 (14:59 -0800)
commit52c5d8d3c1657cd8dc1675f8205ca0ecc08b6a51
tree0960ecda24c53447f2b725afd585064abcc4a6e3
parent3af378feac5bb504387dd6bc232b9c64a8a376d9
xen/arm: vsmc: Implement SMCCC_ARCH_WORKAROUND_1 BP hardening support

SMCCC 1.1 offers firmware-based CPU workarounds. In particular,
SMCCC_ARCH_WORKAROUND_1 provides BP hardening for variant 2 of XSA-254
(CVE-2017-5715).

If the hypervisor has some mitigation for this issue, report that we
deal with it using SMCCC_ARCH_WORKAROUND_1, as we apply the hypervisor
workaround on every guest exit.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Volodymyr Babchuk <volodymyr.babchuk@epam.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
xen/arch/arm/vsmc.c
xen/include/asm-arm/smccc.h